<!--{template admin/header}-->
<form method="post" action="{$action}">
  <INPUT TYPE="hidden" name='id' value={$request[id]}>
  <INPUT TYPE="hidden" name='old_username' value={$username}>
  <a name="{$this->Title} - {$username}"></a>
  <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
    <tr class="header">
      <td colspan="2">{$action_name} - {$request[name]}</td>
    </tr>
    <tr>
      <td width="40%" bgcolor="#F8F8F8"><b>用户帐户:</b><br>
        <span class="smalltxt">如不是特别需要，请不要修改用户名</span></td>
      <td bgcolor="#FFFFFF"><!--{if $request['id'] < 2}-->
        <input type="text" size="30" name="name" value="{$request[name]}" readonly>
        <!--{else}-->
        <input type="text" size="30" name="name" value="{$request[name]}">
        <!--{/IF}--></td>
    </tr>
	<tr>
      <td width="40%" bgcolor="#F8F8F8"><b>姓名/昵称:</b></td>
      <td bgcolor="#FFFFFF"><strong>
        <input name="nickname" type="text" id="nick_name" value="{$request[nick_name]}" size="30" />
      </strong></td>
    </tr>
    <tr>
      <td width="40%" bgcolor="#F8F8F8"><b>新密码:</b><br>
        <span class="smalltxt">如果不更改密码此处请留空</span></td>
      <td bgcolor="#FFFFFF">
      	<input type="text" size="30" name="password" value>
		</td>
    </tr>
    <tr>
      <td width="40%" bgcolor="#F8F8F8"><b>用户组:</b><br>
        <span class="smalltxt">用户在网站里属于哪种角色</span></td>
      <td bgcolor="#FFFFFF">
	   {$select}
		</td>
    </tr>
    <tr>
      <td width="40%" bgcolor="#F8F8F8"><b>性别:</b></td>
      <td bgcolor="#FFFFFF">
	      <input id="gender_1" class="radio" type="radio" {echo ($request[gender] == '1') ? 'checked=""' : ''} value="1" name="gender">
			<label for="gender_1">男</label>
			<input id="gender_2" class="radio" type="radio" {echo ($request[gender] == '2') ? 'checked=""' : ''} value="2" name="gender">
			<label for="gender_2">女</label>
      </td>
    </tr>
    <tr>
      <td width="40%" bgcolor="#F8F8F8"><b>Email:</b></td>
      <td bgcolor="#FFFFFF">
      	<input type="text" size="30" name="email" value="{$request[email]}">
		</td>
    </tr>
    <tr>
      <td width="40%" bgcolor="#F8F8F8"><b>电话号码:</b></td>
      <td bgcolor="#FFFFFF">
      	<input type="text" size="30" name="phone_number" value="{$request[phone_number]}">
		</td>
    </tr>
    <tr>
      <td width="40%" bgcolor="#F8F8F8"><b>注册 IP:</b></td>
      <td bgcolor="#FFFFFF">
      	{$request[register_ip]}
      </td>
    </tr>
    <tr>
      <td width="40%" bgcolor="#F8F8F8"><b>注册时间:</b></td>
      <td bgcolor="#FFFFFF">
      	{echo date('Y-m-d H:i:s', $request[register_time])}
      </td>
    </tr>
    <tr>
      <td width="40%" bgcolor="#F8F8F8"><b>上次登录 IP:</b></td>
      <td bgcolor="#FFFFFF">
      	{$request[last_ip]}
      </td>
    </tr>
    <tr>
      <td width="40%" bgcolor="#F8F8F8"><b>上次登录时间:</b></td>
      <td bgcolor="#FFFFFF">
      	{echo date('Y-m-d H:i:s', $request[last_activity])}
      </td>
    </tr>

  </table>
  <center>
    <input type="submit" class="button" name="editsubmit" value="提 交">
  </center>
  <br>
</form>
